<template>
  <div>{{sum}}</div>
  <button @click="getSum()">点我sum+1</button>
  <hr>
  <img v-for="(dog, index) in array" :src="dog" :key="index">
  <br>
  <button @click="addDog()">再来一只小狗</button>
</template>

<script lang="ts" setup>
import UseSum from "./hooks/useSum";
import useDog from "./hooks/useDog";

let {sum, getSum} = UseSum();
let {array, addDog} = useDog()


</script>

<style scoped>

</style>